package com.fanjia.crm.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * Created by FanJia on 2020/9/20 15:10
 */
@Configuration
public class PluginConfig {
    @Bean
    public PasswordEncoder createPwdEncoder(){
        return new BCryptPasswordEncoder();  //多次对密码进行加盐，md5,
    }

}
